var userInitState = {
    name: '',
    acount: '',
    password: ''
};

export default function (state = userInitState, action){
    switch(action.type){

        case 'USER_NAME':
            return {...state, name: action.name};

        case 'USER_ACCOUNT':
            return {...state, acount: action.acount}

        case 'USER_PASSWORD':
            return {...state, password: action.password}    

        default:
            return state;    
    }
}